@extends('home/myhouse/layout')
@section('title','消息管理')
@section('content')
<div>
    <div style="height:20px;"></div>
    <div style="font-size:20px;float:left">收藏商品列表</div>
    
    <div style="margin:0;padding:0; width:100%;height:1px;background-color:#EFEFEF;overflow:hidden;"></div>
    <div style="height:20px;"></div>
</div>

<form action="" method="">
    {{csrf_field()}}
    <div style="height:30px;"></div>
    <table id="member_list" class="table table-bordered table-striped text-center">
        <thead>
          <tr>
            <th style="text-align:center">ID</th>
            <th style="text-align:center">商品标题</th>
            <th style="text-align:center">商品图片</th>
            <th style="text-align:center">商品价格</th>
            <th style="text-align:center">商品关键字</th>
            <th style="text-align:center">操作</th>
          </tr>
        </thead>
        <thead>
        @foreach($data as $key=>$val)
          <tr>
            <td>{{$val->product_id}}</td>
            <td><a href="/single/{{$val->product_id}}">{{$val->title}}</a> </td>
            <td><a href="/single/{{$val->product_id}}"><img src="/uploads/product/logo_pic/{{$val->logo_pic}}"> </a> </td>
            <td>{{$val->sprice}}</td>
            <td>{{$val->keyword}}</td>
            <td><a href="/collect/del/{{$val -> collect_id}}">删除</a></td>
          </tr>
        @endforeach
        </thead>
    </table>
       
    
       
</form>
 
<script type="text/javascript">
    // alert($);
    $('#createadd').on('click',function(){
       window.location.href='/myhouse/addressadd';
    });
    
</script>
@stop